import 'package:base_flutter/base_flutter.dart';
import 'package:ls_work/self_medicine/response/self_medicine_library_data.dart';
import 'package:ls_work/self_medicine/self_medicine_model.dart';
class SelfMedicineLibraryViewModel extends BaseListViewModel<SelfMedicineLibraryData>{
  dynamic customerId;
  SelfMedicineLibraryViewModel(super.context,{this.customerId});

  var model = SelfMedicineModel();

  @override
  Future<List<SelfMedicineLibraryData>> requestListData() async {
    return await model.medicineLibrary(customerElderId: customerId,page: page,rows: pageLength);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh();
  }
}